from likeShop_Pro.base.myBase import Tools


class login_model(Tools):
    # 路径
    path = 'api/account/login'

    # 发送请求
    def send(self,tel,pwd,client):
        mydata = {
            "account":tel,
            "password":pwd,
            "client":client
        }

        msg = self.huihua.post(url=self.hosturl + self.path, data=mydata)
        return msg.json() # 返回 响应的 json数据


if __name__ == '__main__':
    import requests
    huihua = requests.session()
    r = login_model(huihua=huihua)
    res = r.send(tel='18955551235',pwd='admin123.',client=2)

